package com.vilen.weather.v_learn_firstcode.app.L_5;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.vilen.weather.v_learn_firstcode.app.BaseActivity;
import com.vilen.weather.v_learn_firstcode.app.R;

/**
 * Created by vilen on 2015/6/16.
 */
public class OfflineActivity extends BaseActivity {
    private Button offline;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_offline);
        offline = (Button) findViewById(R.id.force_offline);
        offline.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent("com.vilen.weather.v_learn_firstcode.app.FORCE_OFFLINE");
                sendBroadcast(intent);
            }
        });
    }
}
